package com.imm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imm.common.Result;
import com.imm.pojo.Employee;

import javax.servlet.http.HttpServletRequest;

public interface IEmployeeService extends IService<Employee> {
    Result<Employee> login(Employee employee, HttpServletRequest request);

    Result<String> logout(HttpServletRequest request);

    Result<String> saveEmployee(Employee employee, HttpServletRequest request);

    Result<Page> pageEmployee(int page, int pageSize, String name);

    Result<String> updateEmployee(Employee employee, HttpServletRequest request);

    Result<Employee> getEmployee(Long id);
}
